﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CRM.Admin.Contracts.Model.Customer;
using KingsSharp.Core.Data.Entity;

namespace CRM.Admin.Services.EntityConfigurations.Customer
{
    public class TechnologyCfg : EntityConfigurationBase<Technology, Guid>
    {
        public TechnologyCfg()
        {
            Property(t => t.EquipmentGetUser).HasMaxLength(50);
            Property(t => t.EquipmentProfiles).HasMaxLength(200);
            Property(t => t.ProcessFilePath).HasMaxLength(2000);
            Property(t => t.ProcessUser).HasMaxLength(50);
            Property(t => t.Profiles).HasMaxLength(200);
            HasRequired(t => t.Customer).WithMany(l => l.Technologys).HasForeignKey(f => f.CustomerId);
        }
    }
}
